package com.ctgu.fastleader.dao;

import com.ctgu.fastleader.vo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer goodsid);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer goodsid);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> findAllGoods();

    List<Goods> searchGoodsByKeyWord(@Param("goodsid") Integer goodsid, @Param("goodsname") String goodsname);

    int selectGoodsNumLow();
}